self.addEventListener('install', function (e) {
    console.log('[ServiceWorker] 安装');
});

self.addEventListener('activate', function (e) {
    console.log('[ServiceWorker] 激活');
})

self.addEventListener('fetch', function (e) {
    console.log('[ServiceWorker] 取出', e.request.url);
});